<template>
  <div class="error">
    <div class="error-content">
      <div class="error-content-warning_img" />
      <div class="error-content-warning_text text-center">
        <h2>404</h2>
        <p>您访问的页面不存在，请检查您的网址</p>
      </div>
      <button class="error-btn" @click="$router.push('/')">返回首页</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Index'
}
</script>

<style scoped lang="scss">
  .error{
    width: 100vw;
    max-width: 750px;
    height: 100vh;
    background-color: #fd7571;
    display: flex;
    justify-content: center;
    align-items: center;
    .error-content{
      width: 85%;
      height: 75%;
      overflow: hidden;
      border-radius:10px;
      box-shadow: 0 0 20px rgba(75, 75, 75, 0.4);
      background-color: #ffffff;
      position: relative;
      .error-content-warning_img{
        width: 280px;
        height: 280px;
        background: url("../../assets/error.png") no-repeat center center;
        background-size: cover;
        margin: 85px auto 0;
      }
      .error-content-warning_text{
        padding: 50px 150px 0;
        color: #666666;
        h2{
          color: #2c3e50;
          font-size: 50px;
          font-weight: normal;
        }
        p{
          margin-top: 20px;
          font-size: 25px;
        }
      }
      .error-btn{
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 90px;
        color: #a6a5a8;
        background-color: #fff;
        font-size: 28px;
        border-top: 1px solid #ebeaed;
      }
    }
  }
</style>
